package com.ruoyi.backend.service.impl;

import java.util.List;

import com.ruoyi.backend.mapper.ActivityReleasedMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.backend.domain.Activity;
import com.ruoyi.backend.service.IActivityReleasedService;

/**
 * 已审核Service业务层处理
 * 
 * @author 王冰冰
 * @date 2025-03-20
 */
@Service
public class ActivityReleasedServiceImpl implements IActivityReleasedService
{
    @Autowired
    private ActivityReleasedMapper activityReleasedMapper;

    /**
     * 查询已审核
     * 
     * @param activityId 已审核主键
     * @return 已审核
     */
    @Override
    public Activity selectActivityByActivityId(Long activityId)
    {
        return activityReleasedMapper.selectActivityByActivityId(activityId);
    }

    /**
     * 查询已审核列表
     * 
     * @param activity 已审核
     * @return 已审核
     */
    @Override
    public List<Activity> selectActivityList(Activity activity)
    {
        return activityReleasedMapper.selectActivityList(activity);
    }

    /**
     * 新增已审核
     * 
     * @param activity 已审核
     * @return 结果
     */
    @Override
    public int insertActivity(Activity activity)
    {
        return activityReleasedMapper.insertActivity(activity);
    }

    /**
     * 修改已审核
     * 
     * @param activity 已审核
     * @return 结果
     */
    @Override
    public int updateActivity(Activity activity)
    {
        return activityReleasedMapper.updateActivity(activity);
    }

    /**
     * 批量删除已审核
     * 
     * @param activityIds 需要删除的已审核主键
     * @return 结果
     */
    @Override
    public int deleteActivityByActivityIds(Long[] activityIds)
    {
        return activityReleasedMapper.deleteActivityByActivityIds(activityIds);
    }

    /**
     * 删除已审核信息
     * 
     * @param activityId 已审核主键
     * @return 结果
     */
    @Override
    public int deleteActivityByActivityId(Long activityId)
    {
        return activityReleasedMapper.deleteActivityByActivityId(activityId);
    }
}
